package com.tkxgz.elitecourse.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author Soyi Yao
 * @since 2012-8-3 下午7:05:44
 */
@Controller("/test.do")
public class TestController {

	@RequestMapping(params = "action=testJsp", method = RequestMethod.GET)
	public String testJsp() {
		return "/test/testJsp.jsp";
	}

	@RequestMapping(params = "action=testFreemarker",
			method = RequestMethod.GET)
	public String testFreemarker() {
		return "/test/testFreemarker.ftl";
	}

	@RequestMapping(params = "action=testFreemarkerDriective",
			method = RequestMethod.GET)
	public String testFreemarkerDriective() {
		return "/test/test.ftl";
	}
}
